package edu.ynu.se.xiecheng.achitectureclass.common.dao;

import edu.ynu.se.xiecheng.achitectureclass.common.entity.Device;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface DeviceDAO extends JpaRepository<Device, Long> {
    List<Device> findByGreenhouseId(Long greenhouseId);
}